/**
 * api文件
 * @Author: yd_renyuanyu
 * @Date: 2021-11-12 10:48:10
 * @Version: 1.0.0
 */
import request from '@/lib/request';

/* ********** Languages ********** */
/**
 * --
 * @tips Languages
 * @tags [Languages]
  */
export function api_GET_LanguagesAll () {
  return request({
    baseURL: WEB_CONFIG.VUE_APP_SWAGGER_BASE,
    url: '/api/language-management/languages/all',
    method: 'get'
  });
}
/**
 * --
 * @tips Languages
 * @tags [Languages]
 * @param { object } aDataQuery 参数 [Api_GET_LanguagesQO]
  */
export function api_GET_Languages (aDataQuery) {
  return request({
    baseURL: WEB_CONFIG.VUE_APP_SWAGGER_BASE,
    url: '/api/language-management/languages',
    method: 'get',
    params: aDataQuery
  });
}
/**
 * --
 * @tips Languages
 * @tags [Languages]
 * @param { object } aDataBody 参数 [#/components/schemas/Volo.Abp.LanguageManagement.Dto.CreateLanguageDto]
  */
export function api_POST_Languages (aDataBody) {
  return request({
    baseURL: WEB_CONFIG.VUE_APP_SWAGGER_BASE,
    url: '/api/language-management/languages',
    method: 'post',
    data: aDataBody
  });
}
/**
 * --
 * @tips Languages
 * @tags [Languages]
 * @param {string} id
  */
export function api_GET_LanguagesId (id) {
  return request({
    baseURL: WEB_CONFIG.VUE_APP_SWAGGER_BASE,
    url: `/api/language-management/languages/${id}`,
    method: 'get'
  });
}
/**
 * --
 * @tips Languages
 * @tags [Languages]
 * @param {string} id
 * @param { object } aDataBody 参数 [#/components/schemas/Volo.Abp.LanguageManagement.Dto.UpdateLanguageDto]
  */
export function api_PUT_LanguagesId (id, aDataBody) {
  return request({
    baseURL: WEB_CONFIG.VUE_APP_SWAGGER_BASE,
    url: `/api/language-management/languages/${id}`,
    method: 'put',
    data: aDataBody
  });
}
/**
 * --
 * @tips Languages
 * @tags [Languages]
 * @param {string} id
  */
export function api_DELETE_LanguagesId (id) {
  return request({
    baseURL: WEB_CONFIG.VUE_APP_SWAGGER_BASE,
    url: `/api/language-management/languages/${id}`,
    method: 'delete'
  });
}
/**
 * --
 * @tips Languages
 * @tags [Languages]
 * @param {string} id
  */
export function api_PUT_LanguagesIdSetAsDefault (id) {
  return request({
    baseURL: WEB_CONFIG.VUE_APP_SWAGGER_BASE,
    url: `/api/language-management/languages/${id}/set-as-default`,
    method: 'put'
  });
}
/**
 * --
 * @tips Languages
 * @tags [Languages]
  */
export function api_GET_LanguagesResources () {
  return request({
    baseURL: WEB_CONFIG.VUE_APP_SWAGGER_BASE,
    url: '/api/language-management/languages/resources',
    method: 'get'
  });
}
/**
 * --
 * @tips Languages
 * @tags [Languages]
  */
export function api_GET_LanguagesCultureList () {
  return request({
    baseURL: WEB_CONFIG.VUE_APP_SWAGGER_BASE,
    url: '/api/language-management/languages/culture-list',
    method: 'get'
  });
}
/* ********** LanguageTexts ********** */
/**
 * --
 * @tips LanguageTexts
 * @tags [LanguageTexts]
 * @param { object } aDataQuery 参数 [Api_GET_LanguageTextsQO]
  */
export function api_GET_LanguageTexts (aDataQuery) {
  return request({
    baseURL: WEB_CONFIG.VUE_APP_SWAGGER_BASE,
    url: '/api/language-management/language-texts',
    method: 'get',
    params: aDataQuery
  });
}
/**
 * --
 * @tips LanguageTexts
 * @tags [LanguageTexts]
 * @param {string} resourceName
 * @param {string} cultureName
 * @param {string} name
 * @param { object } aDataQuery 参数 [Api_GET_LanguageTextsResourceNameCultureNameNameQO]
  */
export function api_GET_LanguageTextsResourceNameCultureNameName (resourceName, cultureName, name, aDataQuery) {
  return request({
    baseURL: WEB_CONFIG.VUE_APP_SWAGGER_BASE,
    url: `/api/language-management/language-texts/${resourceName}/${cultureName}/${name}`,
    method: 'get',
    params: aDataQuery
  });
}
/**
 * --
 * @tips LanguageTexts
 * @tags [LanguageTexts]
 * @param {string} resourceName
 * @param {string} cultureName
 * @param {string} name
 * @param { object } aDataQuery 参数 [Api_PUT_LanguageTextsResourceNameCultureNameNameQO]
  */
export function api_PUT_LanguageTextsResourceNameCultureNameName (resourceName, cultureName, name, aDataQuery) {
  return request({
    baseURL: WEB_CONFIG.VUE_APP_SWAGGER_BASE,
    url: `/api/language-management/language-texts/${resourceName}/${cultureName}/${name}`,
    method: 'put',
    params: aDataQuery
  });
}
/**
 * --
 * @tips LanguageTexts
 * @tags [LanguageTexts]
 * @param {string} resourceName
 * @param {string} cultureName
 * @param {string} name
  */
export function api_PUT_LanguageTextsResourceNameCultureNameNameRestore (resourceName, cultureName, name) {
  return request({
    baseURL: WEB_CONFIG.VUE_APP_SWAGGER_BASE,
    url: `/api/language-management/language-texts/${resourceName}/${cultureName}/${name}/restore`,
    method: 'put'
  });
}
